package com.o2o.model.trade;

import java.util.List;

import org.springframework.stereotype.Component;

import com.o2o.base.BaseModel;

@Component
public class TradeItem extends BaseModel{
	
	/**
	 * 订单商品项目类
	 */
	private static final long serialVersionUID = -8480345162530030646L;
	
	private long id;
	
	private long orderId;//订单编号
	
	private long  productId;//商品id
	
	private int productNum;//产品数量
	
	private int productType;//产品类型，1为现货标准产品，2为加工定制品.3为二手商品
	
	private int productCategoryNumber;//所属分类的category_number
	
	private List<PictureFile> productPic;//图片文件
	
	private float productPrice;//商品实际订单价格
	
	private String productPicture;//商品主图

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getOrderId() {
		return orderId;
	}

	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}

	public long getProductId() {
		return productId;
	}

	public void setProductId(long productId) {
		this.productId = productId;
	}

	public int getProductNum() {
		return productNum;
	}

	public void setProductNum(int productNum) {
		this.productNum = productNum;
	}

	public int getProductType() {
		return productType;
	}

	public void setProductType(int productType) {
		this.productType = productType;
	}

	public int getProductCategoryNumber() {
		return productCategoryNumber;
	}

	public void setProductCategoryNumber(int productCategoryNumber) {
		this.productCategoryNumber = productCategoryNumber;
	}

	public List<PictureFile> getProductPic() {
		return productPic;
	}

	public void setProductPic(List<PictureFile> productPic) {
		this.productPic = productPic;
	}

	public float getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(float productPrice) {
		this.productPrice = productPrice;
	}

	public String getProductPicture() {
		return productPicture;
	}

	public void setProductPicture(String productPicture) {
		this.productPicture = productPicture;
	}

	public TradeItem() {
		super();
	}

	@Override
	public String toString() {
		return "TradeItem [id=" + id + ", orderId=" + orderId + ", productId="
				+ productId + ", productNum=" + productNum + ", productType="
				+ productType + ", productCategoryNumber="
				+ productCategoryNumber + ", productPic=" + productPic
				+ ", productPrice=" + productPrice + ", productPicture="
				+ productPicture + "]";
	}
	
	
	
	
	
	

}
